﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PSE.Framework.Communication.Configuration.Exceptions
{
    public class InvalidCommunicationClientConfigurationException : Exception
    {
        private string _processName;
        public string ProcessName
        {
            get { return _processName; }
        }

        public InvalidCommunicationClientConfigurationException(string message, string processName)
            : base(message)
        {
            _processName = processName;

            //TODO: Alterar por log padrao
            //System.Diagnostics.EventLog.WriteEntry("PSE.Framework.Communication", processName + ":" + Environment.NewLine + message);

        }

        public InvalidCommunicationClientConfigurationException(string message, string processName, Exception innerException)
            : base(message, innerException)
        {
            _processName = processName;

            //TODO: Alterar por log padrao
            //System.Diagnostics.EventLog.WriteEntry("PSE.Framework.Communication", processName + ":" + Environment.NewLine + message + Environment.NewLine + "InnerException: " + innerException.Message);

        }
    }
}
